<?php
/**
 *
 * @user: leo
 * @date: 2021/7/1
 * @createTime: 14:55
 * @company: 迈酷网络科技 http://www.maicooit.com
 */
namespace app\admin\model;

use think\Model;

class RolesAuth extends Model{
    //列表
    public function RolesAuthListModel($key,$role_id,$page,$pagesize){
        $list = $this->alias('d')
            ->where('role_id','=',$role_id)
            ->field('*')
            ->paginate([
                'list_rows'=> $pagesize,
                'var_page' => 'page',
                'page'=>$page
            ]);
        return $list;
    }
    //新增
    public function RolesAuthInsertModel($Info){
        return $this->insertGetId($Info);
    }
}